#ifndef FIRSTPAGE_H
#define FIRSTPAGE_H

#include <QWidget>
#include "globalval.h"
#include <mqtthandler.h>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QFile>
#include <QPainter> // 画家类
#include <QPixmap>
#include <QTimer>   // 定时器类
#include <QDateTime>


namespace Ui {
class FirstPage;
}

class FirstPage : public QWidget ,public GlobalVal
{
    Q_OBJECT

public:
    explicit FirstPage(QWidget *parent = 0);
    ~FirstPage();


private:
    Ui::FirstPage *ui;
    void paintEvent(QPaintEvent * event);
    QTimer *timer;  // 定时器对象
private slots:
    void dataUpSlot(QByteArray);//接收数据并显示
    void pushButton_3_shuaxin(); //刷新
    void timeoutSlot();


};

#endif // FIRSTPAGE_H
